package studentcourse.test;

import studentcourse.entity.Course;
import studentcourse.entity.Teacher;
import studentcourse.entity.Student;

public class TestMain {

    public static void main(String[] args) {
        //测试课程
        Course course_test1 = new Course(
                "C_test1",
                "测试课程1",
                "location_test1",
                "time_day_test1",
                "T_test1"
        );
        Course course_test2 = new Course(
                "C_test2",
                "测试课程2",
                "location_test2",
                "time_day_test2",
                "T_test2"
        );
        System.out.println("=== 测试课程已创建 ===");

        //测试教师
        Teacher teacher_test1 = new Teacher(
                "T_test1",
                "测试教师1",
                "示例性别1",
                "测试课程1"
        );
        Teacher teacher_test2 = new Teacher(
                "T_test2",
                "测试教师2",
                "示例性别2",
                "测试课程2"
        );
        System.out.println("\n=== 测试教师已创建 ===");

        //测试学生
        Student student_test1 = new Student(
                "S_test1",
                "测试学生1",
                "示例性别1"
        );
        Student student_test2 = new Student(
                "S_test2",
                "测试学生2",
                "示例性别2"
        );
        System.out.println("=== 测试学生已创建 ===");

        // 学生选课
        System.out.println("\n----- 开始选课 -----");
        student_test1.selectCourse(course_test1);
        student_test2.selectCourse(course_test2);

        // 打印教师信息
        System.out.println("\n----- 教师信息 -----");
        teacher_test1.printWorksheet();
        teacher_test2.printWorksheet();

        // 打印学生选课信息
        System.out.println("\n----- 学生选课情况 -----");
        student_test1.printWorksheet();
        student_test2.printWorksheet();

        // 学生退课
        System.out.println("\n----- 开始退课 -----");
        student_test1.dropCourse();

        // 打印退课
        System.out.println("\n----- 退课后情况 -----");
        student_test1.printWorksheet();
    }
}